<?php
class Rulemanager_Data_Insertrule implements Rulemanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "INSERT INTO company_rules(rule_name, rule_description) VALUES('".$variables['post']['rule_name']."','".$variables['post']['rule_description']."');";
        return $this->core_controller_dataoperation->main($variables);
    }
}
